//
//  ACSettingsModel.h
//  acfun_video
//
//  Created by user on 11/24/15.
//  Copyright © 2015 wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ACArticleSettingAlertView.h"

#define kSaveSetting(key,value) \
{\
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];\
[def setObject:value forKey:key];\
[def synchronize];\
}\


#define kIsLoadingImg    @"isAllowedLoadingImageWithoutWiFi"//
///文章详情的类型
#define kArticleFontType @"kArticleFontType"
#define kGetSetting(key)   [[NSUserDefaults standardUserDefaults]objectForKey:key];


//设置中的字体-----------------------------------------------------------------------------------------------------------------------------
///获取setting界面的fontType
extern ACArticleFontType ACArticleFontTypeInSetting();
///更新在settin中的字号设置
extern void ACArticleFontTypeUpdateInSetting(ACArticleFontType type);
///重置为默认
extern void ACArticleFontTypeResetToDefault();
///获取当前设置默认的title
extern NSString *ACArticleDefaultFontTypeTitle();
//设置中的字体-----------------------------------------------------------------------------------------------------------------------------

///图片智能加载,返回yes,在3g环境下不加载图片,相当于无图模式
extern BOOL ACArticleLoadImageWisely();
///更新图片加载规则,isLoadImageWisely为yes,则相当于无图模式,相反在3g环境下也加载图片
extern void ACArticleUpdateImageMode(BOOL isLoadImageWisely);
